* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-size: 14px;
  background-color: #f5f8fa;
}

a {
  color: #3097d1;
  text-decoration: none;
}

.container {
  width: 1200px;
  margin: auto;
}

.container::after,
.row::after,
ul::after{
  display: table;
  clear: both;
  content: "";
}

.row {
  margin-left: -15px;
  margin-right: -15px;
}

.col-3 {
  float: left;
  width: 25%;
  padding-left: 15px;
  padding-right: 15px;
}

.col-6 {
  float: left;
  width: 50%;
  padding-left: 15px;
  padding-right: 15px;
}

@media (max-width: 1200px) {
  .container {
    width: 960px;
  }
}

@media (max-width: 960px) {
  .container {
    width: 720px;
  }
}

@media (max-width: 720px) {
  .container {
    width: 320px;
  }
  .col-3,
  .col-6 {
    width: 100%;
  }
}

header {
  margin-bottom: 30px;
  nav {
    background-color: #3097d1;
    color: #ffffff;
    .logo {
      float: left;
      margin-top: 18px;
      margin-right: 30px;
      img {
        width: 85px;
        height: 23px;
        display: block;
      }
    }
    ul {
      float: left;
    }
    ul::after {
      display: table;
      clear: both;
      content: "";
    }
    li {
      list-style: none;
      float: left;
      a {
        padding: 20px 15px;
        text-decoration: none;
        color: #ffffff;
        display: block;
        &.active,
        &:hover {
          background-color: #2579a8;
        }
      }
    }
  }
}

@media (max-width: 720px) {
  header nav .logo {
    float: none;
    margin: 0;
    padding: 15px;
    display: block;
    text-align: center;
    img {
      display: inline-block;
    }
  }
}

//用户区域的样式
.user {
  border: 1px solid #d3e0e9;
  border-radius: 2px;
  margin-bottom: 30px;
  .user-header {
    background: url("../img/iceland.jpg");
    background-size: cover;
    height: 150px;

  }
  .user-content {
    text-align: center;
    margin-top: -50px;
    padding-left: 15px;
    padding-right: 15px;
    img {
      width: 100px;
      height: 100px;
      border-radius: 50%;
      border: 2px solid #fff;
      margin-bottom: 5px;
    }
    h2 {
      font-size: 16px;
      margin-bottom: 15px;
    }
    p {
      font-size: 14px;
      line-height: 1.5em;
      margin-bottom: 30px;
    }
    a {
      color: #1e3948;
    }
  }
}

@media (max-width: 1200px) {
  .user .user-header {
    height: 120px;
  }
}

.about {
  border: 1px solid #d3e0e9;
  border-radius: 2px;
  margin-bottom: 30px;
  padding: 15px;
  h2 {
    font-size: 16px;
    margin-bottom: 20px;
  }
  ul {
    list-style: none;
  }
  li {
    margin-bottom: 10px;
  }
  a:hover {
    text-decoration: underline;
  }
}

.photos {
  border: 1px solid #d3e0e9;
  padding: 15px;
  h3 {
    margin-bottom: 15px;
  }
  .row {
    margin-left: -5px;
    margin-right: -5px;
  }
  .col-6 {
    padding-left: 5px;
    padding-right: 5px;
  }
  img {
    width: 100%;
    display: block;
    margin-bottom: 10px;
  }
}

@media (max-width: 720px) {
  .photos {
    .col-6 {
      width: 50%;
    }
  }
}

.content {
  border: 1px solid #d3e0e9;
  border-radius: 2px;
  margin-bottom: 30px;
  section {
    padding: 15px;
    border-bottom: 1px solid #d3e0e9;
  }
  section:last-child {
    border-bottom: none;
  }
  .main {
    margin-bottom: 30px;
  }
  h3 {
  }
  span {
    float: right;
    color: #666;
  }
  .cont {
    .text {
      margin-bottom: 30px;
    }
    .pic {
      margin-left: -5px;
      margin-right: -5px;
      img {
        width: 50%;
        float: left;
        height: 200px;
        padding-left: 5px;
        padding-right: 5px;
        margin-bottom: 10px;
      }
    }
    .pic::after {
      display: table;
      clear: both;
      content: "";
    }
    .pic.oneImg {
      img {
        width: 100%;
        height: auto;
      }
    }
  }
  .say {
    p {
      margin-bottom: 20px;
    }
  }
}

@media (max-width: 1200px) {
  .content .cont .pic img {
    height: 150px;
  }
}

@media (max-width: 720px) {
  .content .cont .pic img {
    width: 100%;
    height: auto;
  }
}

.sponsored {
  border: 1px solid #d3e0e9;
  border-radius: 2px;
  padding: 15px;
  margin-bottom: 30px;
  h2 {
    font-size: 16px;
    margin-bottom: 20px;
  }
  img {
    width: 100%;
    margin-bottom: 10px;
  }
  h3 {
    font-size: 14px;
    margin-bottom: 10px;
  }
  p {
    margin-bottom: 10px;
  }
  a {
    display: inline-block;
    border: 1px solid #2a88bd;
    padding: 8px 10px;
    border-radius: 2px;
    &:hover {
      background-color: #2a88bd;
      color: #ffffff;
    }
  }
}

.likes {
  border: 1px solid #d3e0e9;
  border-radius: 2px;
  margin-bottom: 30px;
  background-color: #fff;
  .likes-user {
    padding: 15px;
    border-bottom: 1px solid #d3e0e9;
  }
  .likes-user-icon { //likes部分的链接小图标 <i class="likes-user-icon">
    width: 14px;
    height: 12px;
    background-image: url("../img/user.png");
    display: inline-block;
  }
  .likes-text {
    padding: 15px;
    background-color: #f5f8fa;
  }
  h2 {
    font-size: 16px;
    margin-bottom: 20px;
  }
  li {
    list-style: none;
    position: relative;
    margin-bottom: 20px;
    div {
      margin-left: 75px;
      padding-top: 1px;
    }
    p {
      margin-bottom: 6px;
    }
    img {
      width: 60px;
      height: 60px;
      border-radius: 50%;
      position: absolute;
    }
    a {
      display: inline-block;
      border: 1px solid #2a88bd;
      border-radius: 2px;
      padding: 6px 10px;
      &:hover {
        background-color: #2a88bd;
        color: #fff;
        & .likes-user-icon {
          background-position: 0 -12px;
        }
      }
    }
  }
}

@media (max-width: 960px) {
  .likes li {
    div {
      margin-left: 65px;
    }
    a i {
      display: none;
    }
  }
}

@media (max-width: 720px) {
  .likes li {
    a i {
      display: inline-block;
    }
  }
}

footer {
  border-top: 1px solid #d3e0e9;
  padding-top: 50px;
  padding-bottom: 50px;
  text-align: center;
  p {
    margin-bottom: 20px;
  }
  li {
    display: inline-block;
    margin: 15px;
  }
  a:hover{
    text-decoration: underline;
  }
}
/*profile.html*/
.banner{
  background: url("../img/iceland.jpg");
  background-size: cover;
  height: 690px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #cccccc;
  .user{
    display: block;
    border: aliceblue;
    img{
      border-radius: 50%;
      width: 150px;
      height: 150px;
    }
  }
}
@media (max-width: 1200px) {
  .banner {
    height:600px;
  }
}

@media (max-width: 960px) {
  .banner {
    height: 450px;
    .user{
      img{
        width: 100px;
        height: 100px;
      }
    }
  }
}

@media (max-width: 720px) {
  .banner {
    height: 350px;
    .user{
      img{
        width: 100px;
        height: 100px;
      }
    }
  }
}
.container{
  .profile-ul{
    margin: 0 -5px 30px -5px;
    li{
      list-style:none;
      float: left;
      padding: 5px;
      width: 25%;
    }
    a{
      display: block;
    }
    img{
      width: 100%;
    }
  }
}
@media (max-width: 720px) {
  .container{
    .profile-ul {
      li {
        width: 100%;
      }
    }
  }

}
/*profile.html*/
/*docs.html*/
.banner-bg{
  background: url("../img/docs-banner-bg.gif");
  height: 265px;
  h1{
    color: #ffffff;
    font-size:52px;
    padding-top: 67px;
  }
  p{
    color: #add0df;
    font-size: 16px;
    width: 50%;
  }
}
.col-10{
  width: 80%;
  float: left;
  h1{
    border-bottom: 1px #cccccc solid;
    margin-bottom: 15px;
  }
  span{
    font-size: 20px;
  }
  p{
    margin-top:15px;
    margin-bottom: 15px;
  }
}
.col-2{
  width: 20%;
  float: left;
  ul{
    margin-left: 35px;
    li{
      list-style:none;
      a{
        color: #000;
        display: block;
        padding-left:18px;
        padding-top: 8px;
        padding-bottom: 8px;
        &:hover,
        &.astyle{
          border-left:2px #3097d1 solid;
          color: #3097d1;
        }
      }
    }
  }
}
/*docs.html*/